{% extends 'authenticated.html' %}

{% block title %}Role Assignment List{% endblock %}

{% block content %}
  <h2>Role Assignments</h2>
  <p><a href="/edit/roles/add" class="button ui-state-default ui-corner-all">Add</a></p>
  <table class="ui-widget ui-widget-content ui-corner-all" border="0" cellspacing="0" cellpadding="2">
  <thead>
    <tr class="ui-widget-header" style="text-align:left"><th>User</th><th>Role</th></tr>
  </thead>
  <tbody>
  {% for item in list %}
    <tr>
      <td>{{ item.user }}</td>
      <td><a href="/edit/roles/modify?key={{ item.key }}">{{ item.role }}</a></td>
    </tr>
  {% endfor %}
  </tbody>
  </table>
{% endblock %}
